def calc(*numbers):
    s = 0
    for n in numbers:
        s = s + n * n
    return s


if __name__ == '__main__':

    nums = [1, 2, 3]
    print(calc(*nums))